import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.{Path, FileSystem}
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.SparkContext._
import org.apache.spark.sql.hive.HiveContext
import  org.apache.spark.sql._

/**
 * Created by feel on 2015/5/19.
 */
object demo3 {


  def main(args: Array[String]) {
    val sparkConf=new SparkConf().setAppName("workCount")
    val sc= new SparkContext(sparkConf)
    val  sql=new HiveContext(sc)
    import sql.implicits._
      sql.sql()


  }
}
